var React = require('react');
var ReactDOM = require('react-dom');

//react-router路由部分引入
var Router = require('react-router').Router;
var Route = require('react-router').Route;
var hashHistory = require('react-router').hashHistory;

//引入子模块
var App = require('./modules/App.js');
var About = require('./modules/About.js');
var Repos = require('./modules/Repos.js');

var Index = React.createClass({
	render:function(){
		return (
			<Router history={hashHistory}>
			    <Route path="/" component={App}>
			      <Route path="/repos" component={Repos}/>
			      <Route path="/about" component={About}/>
			    </Route>
		  </Router>
		)
	}
})



ReactDOM.render(<Index/>,document.getElementById('app'));